package com.allm.ai.common.dto;

import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.util.Date;

/**
 * 聊天流式响应DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ChatStreamResponse {
    
    /**
     * 事件类型
     */
    private String eventType;
    
    /**
     * 会话ID
     */
    private String conversationId;
    
    /**
     * 模型名称
     */
    private String modelName;
    
    /**
     * 响应内容片段
     */
    private String content;
    
    /**
     * 是否结束
     */
    private Boolean finished;
    
    /**
     * 响应状态
     */
    private String status;
    
    /**
     * 错误信息
     */
    private String error;
    
    /**
     * 时间戳
     */
    private Date timestamp;
    
    /**
     * 额外数据
     */
    private Object data;
    
    // 常用事件类型常量
    public static final String EVENT_START = "start";
    public static final String EVENT_CHUNK = "chunk";
    public static final String EVENT_END = "end";
    public static final String EVENT_ERROR = "error";
} 